include('shared.lua')
ENT.RenderGroup = RENDERGROUP_BOTH


function ENT:Draw()
	self:DrawModel()
	if !LocalPlayer():Alive() then return end
	local pos = self:GetPos() + Vector( 0,0,15 )
	local ang = LocalPlayer():EyeAngles()
 	ang:RotateAroundAxis( ang:Forward(), 90 )
	ang:RotateAroundAxis( ang:Right(), 90 )
	local Distance = LocalPlayer():GetPos():Distance( self:GetPos() )
	if ( Distance < 1000 ) then
		cam.Start3D2D( pos, Angle( 0, ang.y, ang.r ), 0.25 )
			draw.DrawText( "Pistol Ammo" , "ChatFont", 1, 1, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER ) 
		cam.End3D2D()
	end

end